<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/myerp/base_data/Part_out_mfj_view.js此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/myerp/base_data/Part_out_mfj_view.js";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        setup() {
            const table = ref({
                key: 'TI_SCM_SAP_PARTOUT_ID',
                footer: "Foots",
                cnName: '免费件出库',
                name: 'base_data/Part_out_mfj_view',
                url: "/Part_out_mfj_view/",
                sortName: "TI_SCM_SAP_PARTOUT_ID"
            });
            const editFormFields = ref({"po_no":"","po_line_no":""});
            const editFormOptions = ref([[{"title":"采购订单号","field":"po_no","type":"text"}],
                              [{"title":"采购订单行项目号","field":"po_line_no","type":"text"}]]);
            const searchFormFields = ref({"TI_SCM_SAP_PARTOUT_ID":"","SHEET_NO":"","PART_NO":""});
            const searchFormOptions = ref([[{"title":"ID","field":"TI_SCM_SAP_PARTOUT_ID","type":"text"},{"title":"拉动单","field":"SHEET_NO","type":"like"}],[{"title":"零件号","field":"PART_NO","type":"like"}]]);
            const columns = ref([{field:'TI_SCM_SAP_PARTOUT_ID',title:'ID',type:'decimal',link:true,width:110,require:true,align:'left',sort:true},
                       {field:'PFLAG',title:'PFLAG',type:'string ',width:110,align:'left'},
                       {field:'PREASON',title:'PREASON',type:'string',width:180,align:'left'},
                       {field:'OUTBOUND_QTY',title:'OUTBOUND_QTY',type:'string',width:110,align:'left'},
                       {field:'po_no',title:'采购订单号',type:'string',width:110,align:'left'},
                       {field:'po_line_no',title:'采购订单行项目号',type:'string',width:110,align:'left'},
                       {field:'SHEET_NO',title:'拉动单',type:'string',width:110,align:'left'},
                       {field:'FPLANT_NO',title:'FPLANT_NO',type:'string',width:110,align:'left'},
                       {field:'S_STORAGE_NO',title:'S_STORAGE_NO',type:'string',width:110,align:'left'},
                       {field:'D_STORAGE_NO',title:'D_STORAGE_NO',type:'string',width:110,align:'left'},
                       {field:'SUPPL_NO',title:'SUPPL_NO',type:'string',width:110,align:'left'},
                       {field:'PART_NO',title:'零件号',type:'string',width:110,align:'left'},
                       {field:'OUTBOUND_TIME',title:'OUTBOUND_TIME',type:'string',width:110,align:'left'},
                       {field:'PART_STORAGE_ATTR',title:'PART_STORAGE_ATTR',type:'string',width:110,align:'left'},
                       {field:'PART_STORAGE_TYPE',title:'PART_STORAGE_TYPE',type:'string',width:110,align:'left'},
                       {field:'ZSCT_NO',title:'ZSCT_NO',type:'string',width:110,align:'left'},
                       {field:'PSTYP',title:'PSTYP',type:'string',width:110,align:'left'},
                       {field:'MTYP',title:'MTYP',type:'string',width:110,align:'left'},
                       {field:'create_date',title:'create_date',type:'string ',width:110,align:'left'},
                       {field:'create_by',title:'create_by',type:'string',width:110,align:'left'},
                       {field:'update_date',title:'update_date',type:'string ',width:110,align:'left'},
                       {field:'update_by',title:'update_by',type:'string',width:110,align:'left'}]);
            const detail = ref({
                cnName: "#detailCnName",
                table: "#detailTable",
                columns: [],
                sortName: "",
                key: ""
            });
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
            };
        },
    });
</script>
